<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <button>获取users</button>

    <script src="/public/libs/axios.js"></script>

    <script>
        let btns = document.querySelectorAll('button');

        btns[0].onclick = function() {
            axios({
                method: 'get',
                url: '/users'
            }).then(data => {
                console.log(data)
            })
        }
    </script>
</body>
</html>
